package com.glsc.ngateway.common.api.flowable.dto.task.doTaskParam;

import com.glsc.ngateway.common.api.flowable.dto.task.FlowFormBaseEntityDto;
import com.glsc.ngateway.common.api.flowable.dto.task.formData.AbstractTaskFormDataDto;
import com.glsc.ngateway.common.api.flowable.dto.param.DoTaskCommentDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xuchang
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AbstractPassParamDto<D extends FlowFormBaseEntityDto, T extends AbstractTaskFormDataDto<D>> {
    @ApiModelProperty(value = "流程实例ID")
    protected String processId;

    @ApiModelProperty(value = "任务ID")
    protected String taskId;

    @ApiModelProperty(value = "评论附言")
    protected DoTaskCommentDto commentDto;

    @ApiModelProperty(value = "表单数据")
    protected T flowableFormData;

    @ApiModelProperty(value = "流程定义key")
    private String processDefinitionKey;

    @ApiModelProperty(value = "节点定义key")
    private String taskDefinitionKey;

    @ApiModelProperty(value = "流程标题")
    String processTitle;
}
